package xmlcommandset;

public class UsePermission {
	String permission_name = "";
	private String begin_tag = "<usePermission>";
	private String end_tag = "</usePermission>";

	public String getId_name() {
		return permission_name;
	}

	public void setPermission_name(String permission_name) {
		this.permission_name = permission_name;
	}

	public boolean isEmpty() {
		if (permission_name == "")
			return true;
		return false;
	}

	public String getSharedUserID() {
		return begin_tag + " " + permission_name + " " + end_tag;
	}

	public void printUsePermission() {
		System.out.print(begin_tag + " ");
		System.out.print(permission_name);
		System.out.println(" " + end_tag);
	}

}
